package com.yl.chainStore.services.warehouse

import com.baomidou.mybatisplus.extension.plugins.pagination.Page
import com.yl.chainStore.entity.warehouse.WarehouseDispatchOrder
import com.yl.chainStore.entity.warehouse.WarehouseDispatchOrderDetail
import com.yl.chainStore.pojo.vo.warehouse.WarehouseDispatchOrderSelectVo
import com.yl.common.control.ResponseBody

/**
 * 调度单
 */
interface IWarehouseDispatchOrderService {

	/**
	 * 添加调度单物品详情
	 */
	fun addDetail(detail:WarehouseDispatchOrderDetail):ResponseBody

	/**
	 * 调度单
	 */
	fun dispatchOrder(id: Long): WarehouseDispatchOrder?

	/**
	 * 调度单明细
	 */
	fun getOrderDetails(orderId: Long): List<WarehouseDispatchOrderDetail>

	/**
	 * 调度单完成
	 */
	fun completeDispatchOrder(id: Long): ResponseBody

	/**
	 * 调度单审核失败
	 */
	fun noPassDispatchOrder(id:Long):ResponseBody

	/**
	 * 取消调度（作废）
	 */
	fun cancelDispatchOrder(id: Long): ResponseBody

	/**
	 * 删除调度单
	 */
	fun deleteDispatchOrder(id: Long): ResponseBody
}